<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app" @click="click1()">
			<!-- if 显示指令 -->
			<p v-if="seem">显示</p>
			<!-- bind 绑定属性 -->
			<a v-bind:href="url">....</a>
			<!-- v-on 绑定方法，缩写@，.修饰符 (modifier) （.prevent / .stop 等） -->
			<div @click.stop="click2()">
				click me
			</div>
			
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el:"#app",
				data:{
					seem:true,
					url:"http://www.baidu.com"
					
				},
				methods:{
					click1:function(){
						console.log('click1...');
					},
					click2:function(){
						console.log('click2...');
					}
				}
			})
			
		</script>
	</body>
</html>
